home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Examples / Sound / Other / SndPart.r
Encoding:
Text File  |  1994-04-21  |  2.1 KB  |  119 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        SndPart.r
  3.  
  4.     Contains:    NMAP resource for SndPart
  5.  
  6.     Written by:    Lonnie Millett
  7.  
  8.     Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.         <2+>     1/25/94    MB        Update NMAP resources to the
  13.                                     Internationalizable format.
  14.  
  15.     To Do:
  16. */
  17.  
  18. #define SystemSevenOrBetter 1            // we want the extended types
  19. #define    SystemSevenOrLater    1            // Types.r uses this variable
  20.  
  21. #ifndef __STDTYPES_R__
  22.     #include "StdTypes.r"
  23. #endif __STDTYPES_R__
  24.  
  25. #ifndef _STDDEFS_
  26.     #include "StdDefs.h"
  27. #endif _STDDEFS_
  28.  
  29. #ifndef _SNDPARTDEF_
  30.     #include "SndPartDef.h"
  31. #endif
  32.  
  33. //-------------------------------------------------------------------------------------
  34. // NMAP Resources
  35. //-------------------------------------------------------------------------------------
  36.  
  37. resource kNameMappings (FW_kKindCategoryMapId) {
  38.     kXMPKind,
  39.     {    /* array Types: 1 elements */
  40.         /* [1] */
  41.         kSampleSndKind,
  42.         kXMPIsAnISOStringList
  43.         {
  44.             {    /* array ClassIDs: 1 elements */
  45.                 /* [1] */
  46.                 kXMPCategorySound
  47.             }
  48.         }
  49.     }
  50. };
  51.  
  52. resource kNameMappings (FW_kEditorKindMapId) {
  53.     kXMPEditorKinds,
  54.     {    /* array Types: 1 elements */
  55.         /* [1] */
  56.         kCSndPartID,
  57.         kXMPIsAnISOStringList
  58.         {
  59.             {    /* array ClassIDs: 1 elements */
  60.                 /* [1] */
  61.                 kSampleSndKind
  62.             }
  63.         }
  64.     }
  65. };
  66.  
  67. resource kNameMappings (FW_kEditorUserStringMapId) {
  68.     kXMPEditorUserString,
  69.     {    /* array Types: 1 elements */
  70.         /* [1] */
  71.         kCSndPartID,
  72.         kXMPIsINTLText
  73.         {
  74.             kXMPRomanScript,
  75.             kXMPEnglishLang,
  76.             kSampleSndEditorUserString
  77.         }
  78.     }
  79. };
  80.  
  81. resource kNameMappings (FW_kKindUserStringMapId) {
  82.     kXMPKindUserString,
  83.     {    /* array Types: 1 elements */
  84.         /* [1] */
  85.         kSampleSndKind,
  86.         kXMPIsINTLText
  87.         {
  88.             kXMPRomanScript,
  89.             kXMPEnglishLang,
  90.             kSampleSndKindUserString
  91.         }
  92.     }
  93. };
  94.  
  95. resource kNameMappings (FW_kCategoryUserStringMapId) {
  96.     kXMPCategoryUserString,
  97.     {    /* array Types: 1 elements */
  98.         /* [1] */
  99.         kXMPCategorySound,
  100.         kXMPIsINTLText
  101.         {
  102.             kXMPRomanScript,
  103.             kXMPEnglishLang,
  104.             kSampleSndCategoryUserString
  105.         }
  106.     }
  107. };
  108.  
  109. resource kNameMappings (FW_kOldMacOSTypeMapId) {
  110.     kXMPKindOldMacOSType,
  111.     {    /* array KeyList: 1 elements */
  112.         /* [1] */
  113.         kSampleSndKind,
  114.         kXMPIsMacOSType {
  115.             kSampleSndOSType
  116.         }
  117.     }
  118. };
  119.